<?php


namespace App\Models;


class CommodityOrderComment extends BaseModel
{
    public function getImagesAttribute($value)
    {
        return json_decode($value);
    }

    public function customer()
    {
        return $this->hasOne(CustomerSessionInfo::class, 'id', 'customer_id');
    }

    public function spu()
    {
        return $this->hasOne(GoodsSpu::class, 'id', 'spu_id');
    }
}